<?php
declare(strict_types=1);

namespace traits;

use L;

class UserTrait
{
    public static function user($uid)
    {
        $sql = "SELECT * FROM member WHERE 1 AND id = '{$uid}';";
        $rows = L::sql($sql);
        return (!empty($rows)) ? $rows[0] : [];
    }
}